

import { axios } from '@/utils/request'
export function appCenterList(params) {
  return axios({
    url: '/school/schools/get-applications',
    method: 'post',
    data: params
  })
}
export function livesList(params) {
  return axios({
    url: '/school/lives',
    method: 'post',
    data: params
  })
}

export function createLives(params) {
    return axios({
      url: '/school/lives/create',
      method: 'post',
      data: params
    })
  }
  export function editLives(params,id) {
    return axios({
      url: '/school/lives/'+id+'/update',
      method: 'post',
      data: params
    })
  }
  export function infoLives(id) {
    return axios({
      url: '/school/lives/'+id,
      method: 'post',
    })
  }
  export function delLives(id) {
    return axios({
      url: '/school/lives/'+id+'/delete',
      method: 'post',
    })
  }
  export function replay(id) {
    return axios({
      url: '/school/lives/'+id+'/check-playback',
      method: 'post',
    })
  }
  //获取学员名单
  export function getStudentList(params,id) {
    return axios({
      url: '/school/lives/'+id+'/student-list',
      method: 'post',
      data:params
    })
  }
  //添加学员
  export function addStudent(params,id) {
    return axios({
      url: '/school/lives/'+id+'/add-student',
      method: 'post',
      data:params
    })
  }
  //移出学员
  export function removeStudent(params,id) {
    return axios({
      url: '/school/lives/'+id+'/remove-student',
      method: 'post',
      data:params
    })
  }
  //群发通知
  export function sendNotice(id) {
    return axios({
      url: '/school/lives/'+id+'/send-notice',
      method: 'post',
    })
  }
  //去直播间
  export function openLiveRoom(id) {
    return axios({
      url: '/school/lives/'+id+'/go-live',
      method: 'post',
    })
  }
//更改直播状态
  export function changeStatus(params,id) {
    return axios({
      url: '/school/lives/'+id+'/change-status',
      method: 'post',
      data:params
    })
  }
  //账户管理订单列表
  export function orderList(params) {
    return axios({
      url: '/school/lives/order-list',
      method: 'post',
      data:params
    })
  }

  // 获取学校账户剩余和计费规则
  export function getSurplus(params) {
    return axios({
      url: '/school/lives/get-surplus',
      method: 'post',
      data:params
    })
  }
  
  //导出
  export function exportOut(params) {
    return axios({
      url: '/school/lives/export',
      method: 'post',
      data:params
    })
  }